/**
 * Created by coder008 on 9/6/2017.
 */
import { Subject } from 'rxjs/Subject';
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { HttpService } from '../../core/services/http.service';


@Component({
  selector: 'app-loading',
  templateUrl: './loading.html',
  styleUrls: ['./loading.css']
})
export class LoadingComponent implements OnInit {
  loading$: Subject<{loading: boolean, hasError: boolean, hasMsg: string}>;

  constructor(
    private httpInterceptor: HttpService
  ) {
    this.loading$ = this.httpInterceptor.loading;
  }

  ngOnInit () {
    
  }
}
